package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-13
 * Time: 16:41
 */
public class Test1 {
    public static void main(String[] args) {
        String s="hello";
        StringBuilder stringBuilder=new StringBuilder(s);
        stringBuilder.append("world");
        String str=stringBuilder.toString();
        System.out.println(str);
    }
    public static void main1(String[] args) {
        StringBuilder stringBuilder=new StringBuilder("1");
        stringBuilder.append(1==2);
        System.out.println(stringBuilder);
        System.out.println(stringBuilder.insert(0,123));
    }
}
